home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacWorld 1999 January - Disc 2
/
Macworld (1999-01) (Disk 2).dmg
/
Serious Demos
/
Symbolic Composer 4.2
/
Environment
/
Projects
/
Tutorial Material
/
Zone Tutorial
/
Structure Examples
/
4. Demo2a
< prev
next >
Wrap
Lisp/Scheme
|
1998-10-26
|
1KB
|
52 lines
; Demo2a
; notice: rhythms written in tick values which result to very rapid
; rhythms with the new whole note tick value
(setq tonals
(activate-tonality (chromatic c 4) (major c 4) (c maj maj7 2 4)
(b& min 7 1 3) (aeolian f 3 )))
(setq mela '(a b c d))
(setq melb '(a b = c = d))
(setq melc (vector-to-symbol a d (gen-noise-white 16 0.6)))
; Nigel has been using tick value 96 for 1/4 note.
; Because Nigel often mixes ticks and ratios, the function must take
; both cases into account.
(defun use-nigel-ticks (l)
(let (out)
(dolist (x l)
(if (is-length-symbol x)
(push x out)
(push (* x 5) out)))
(nreverse out)))
(setq rhya '(1/16))
(setq rhyb '(1/8 1/16 1/16 1/4 1/8 1/8))
(setq rhyc
(use-nigel-ticks
(vector-to-list
(vector-quantize 2 16
(vector-round 24 48
(gen-noise-white 16 0.6)))))) ; optional scale 'sets' seed
(def-rhythm
solo rhyc "---- --- - --- -" melc
)
(def-expression
default ((legato 70 29 0.7) (humanize -2 2 0.4) (velocity 32 0.1))
)
(def-velocity
solo (vector-round 54 96 (gen-noise-white 96 0.6))
)
(compile-song-p "ccl;output:" 1/4 "demo2a"
; !---!---!---!---
changes tonals " . . . . "
solo changes "----------------"
)